import * as VueRouter from "vue-router";
import Practice from "@/pages/practice/index.vue";
import Dict from "@/pages/dict/index.vue";
import Mobile from "@/pages/mobile/index.vue";
import Test from "@/pages/test.vue";
import SpeechToSpeech from "@/pages/speech-to-speech/index.vue";

const routes: any[] = [
  { path: "/practice", component: Practice },
  { path: "/dict", component: Dict },
  { path: "/mobile", component: Mobile },
  { path: "/test", component: Test },
  { path: "/speechTo", component: SpeechToSpeech },
  { path: "/", redirect: "/practice" },
 
];

const router = VueRouter.createRouter({
  history: VueRouter.createWebHashHistory(),
  routes,
});

export default router;
